home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
STRINGS
/
PACKAGE6
/
UPPER.DOC
< prev
next >
Wrap
Text File
|
1990-07-25
|
1KB
|
39 lines
-----------------------------------------------------------------------------
ConvertToUpper
-----------------------------------------------------------------------------
declaration: procedure ConvertToUpper ( OldString:
TypeString;
var NewString:
TypeString);
purpose: To convert a string into all upper-case letters.
preconditions: OldString is defined. NewString is undefined.
postconditions: NewString is filled with the contents of OldString, except
that all characters are changed to uppercase.
special cases: none
example: var
AString:
TypeString;
LastKey:
TypeKey;
begin
.
.
.
ReadLnString (AString, 5, LastKey);
ConvertToUpper (AString, AString);
write (output,'here is the string in all uppercase: ');
WriteLnString (output, AString);
.
.
.
end
-----------------------------------------------------------------------------